package com.noble.meether.ui.diamond.bean;

import com.noble.library.base.bean.BaseData;

import org.json.JSONArray;

import java.util.ArrayList;

/**
 * 钻石列表
 */
public class DiamondList extends BaseData{
    private ArrayList<Diamond> diamondList = new ArrayList<>();

    @Override
    public void parseJson(String jsonStr) {
        JSONArray jsonArray = getJsonArray(jsonStr);
        this.diamondList = (ArrayList<Diamond>) getBaseDataList(jsonArray, Diamond.class);
    }

    public ArrayList<Diamond> getDiamondList() {
        return diamondList;
    }
}
